﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace wt.wine.Application.Common.Interfaces
{
    public interface ICheckWineResponse
    {
        /// <summary>
        /// 发起校准命令
        /// </summary>
        /// <param name="device"></param>
        /// <param name="CmdType"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task SendCheckCommand(string device, int CmdType, CancellationToken cancellationtoken);

        /// <summary>
        /// 校准数据提交
        /// </summary>
        /// <param name="device"></param>
        /// <param name="num"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task CalibrationSubmit(string device, int num, CancellationToken cancellationtoken);

        /// <summary>
        /// 发起订单的时候判断设备是否在线
        /// </summary>
        /// <param name="device"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task<int> SendOrderGetStatus(string device, CancellationToken cancellationtoken);
    }
}
